﻿using System;
using System.Data;

namespace MechServer.Objects.Components.BodyParts
{
	public sealed class Torso : MechServer.Objects.Components.BodyParts.BaseBodyPart
	{
		public Torso(Guid parentObject,
			int maxArmorHitPoints,
			int currentArmorHitPoints,
			int maxInnerHitPoints,
			int currentInnerHitPoints,
			int maxRearHitPoints,
			int currentRearHitPoints,
			Enums.Status status)
			: base()
		{
			ParentObject = parentObject;

			MaxArmorHitPoints			= maxArmorHitPoints;
			CurrentArmorHitPoints	= currentArmorHitPoints;
			MaxInnerHitPoints			= maxInnerHitPoints;
			CurrentInnerHitPoints	= currentInnerHitPoints;
			MaxRearHitPoints			= maxRearHitPoints;
			CurrentRearHitPoints		= currentRearHitPoints;

			Status				= status;
			BaseBodyPartType	= MechServer.Objects.Components.BodyParts.Enums.Category.Torso;
		}

		private Enums.TorsoType _torsoType;
		private int					_maxRearHitPoints;
		private int					_currentRearHitPoints;

        #region Properties

        public Enums.TorsoType TorsoType
		{
			get
			{
				return _torsoType;
			}
			set
			{
				_torsoType = value;
			}
		}

		public int MaxRearHitPoints
		{
			get
			{
				return _maxRearHitPoints;
			}
			set
			{
				_maxRearHitPoints = value;
			}
		}

		public int CurrentRearHitPoints
		{
			get
			{
				return _currentRearHitPoints;
			}
			set
			{
				_currentRearHitPoints = value;
			}
        }

        #endregion
    }
}
